/**
 * User: zsquirrel
 * Date: 2020/4/30
 * Time: 9:48 上午
 */
package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.*;
import com.cskaoyan.mall.model.bo.AskGoodsMsgBO;
import com.cskaoyan.mall.model.bo.GoodsParamBO;
import com.cskaoyan.mall.model.bo.ReplyBO;
import com.cskaoyan.mall.model.bo.SpecBO;
import com.cskaoyan.mall.model.vo.*;

import java.util.List;

public interface GoodsService {
    List<Type> getType();

    List<Goods> getGoodsByType(String typeId);

    void addGoods(GoodsParamBO goodsParamBO);

    void deleteType(String typeId);

    GoodsVO getGoodsInfo(String id);

    void deleteSpec(SpecBO specBO);

    void addSpec(Spec spec);

    void updateGoods(GoodsParamBO paramBO);

    void deleteGoods(String id);

    List<NoReplyMsgVO> noReplyMsg();

    void reply(ReplyBO replyBO);

    List<RepliedMsgVO> repliedMsg();

    List<Goods> searchGoods(String keyword);

    GoodsInfoVO goodsInfo(String id);

    List<GoodsInfoMsgVO> getAllMsgs(String goodsId);

    GoodsCommentListVO getGoodsComment(String goodsId);

    void askGoodsMsg(AskGoodsMsgBO askGoodsMsgBO);
}
